<!DOCTYPE html>
<html>
	<head>
	<title>产品入库</title>
		<meta http-equiv="Pragma" CONTENT="no-cache">
		<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
		<meta name="renderer" content="webkit">

		<%include("/common/include.html"){}%>
		<style type="text/css">
			ul li{
				display: inline-block;
			}
		</style>
	</head>
	<body>
		<form id="allData_form">
			<ul style="padding: 10px;">
				<li style="width: 240px;">
					<span>入库日期</span>
					<input id="date" class="easyui-datetimebox inputBox theme-textbox-radius" name="date" data-options="sharedCalendar:'#cc',showSeconds:true" style="height: 30px;width:160px">
				</li>
				<li style="margin-left:30px;">
					<span>选择类别</span>
					<input  id="selType_combobox" class=" easyui-combobox  theme-textbox-radius" style="height:30px;width:120px;text-align:center"/>
				</li>
				<li style="margin-left:30px;">
					<span>选择产品</span>
					<input  id="addPro_combobox" class=" easyui-combobox theme-textbox-radius" style="width:120px;height:30px;text-align:center"/>
				</li>
			</ul>
			<div id="cc" class="easyui-calendar"></div>
			<table id="intoStorage" class="easyui-datagrid" style="width:100%;height:300px"
					data-options="
						singleSelect: true,
						fitColumns:true,
						method: 'get',     
						onClickRow: onClickRow
					">
				<thead>
					<tr>
						<th data-options="field:'proids',hidden:true"></th>
						<th data-options="field:'proname',align:'center',width:100">产品名称</th>
						<th data-options="field:'typeids',hidden:true"></th>
						<th data-options="field:'productclass',align:'center',width:100">产品类别</th>
						<th data-options="field:'stocknow',width:100,align:'center'">当前库存</th>
						<th data-options="field:'intostoragenumber',width:100,align:'center',editor:{type:'numberspinner',
						options:{
							min:1,
							onChange : function(n){
								total(n);
							}
						}}">入库数量</th>
						<th data-options="field:'total',width:100,align:'center'">总库存</th>
						<th data-options="field:'operate',width:100,align:'center',formatter:go">操作</th>

					</tr>
				</thead>
				<tbody>
				</tbody>
			</table>	
			<div id="allData" style="display:none;"></div>
			<a href="#" class="easyui-linkbutton" iconCls="icon-ok" style="width:;height:32px;margin-left: 85%;margin-top: 20px;" onclick="save()">确认入库</a>
		</form>		
		<script src="${cxt !}/sb/js/bintoStorage/bintoStorage.js" type="text/javascript" charset="utf-8"></script>
	</body>
</html>
